package com.ctakit.sdk.exception;


/*
 * andyhome
 */
public class BusinessException extends Exception {

	public static final String errorMsg = "服务器开小差了，请稍后再试";
	public static final String errorMsg_data = "服务器开小差了，请稍后再试.";
	public static final String netErrorMsg = "网络不给力，请稍后再试";

	public static final int errorCode_500 = 500;
	public static final int errorCode_cancel = 601;

	/**
	 * 异常提示信息
	 */
	private String msg;
	private String codeMsg;
	private String data;
	private int code = 0;
	private static final long serialVersionUID = 3479704122322157476L;

	public String getCodeMsg() {
		return codeMsg;
	}

	public void setCodeMsg(String codeMsg) {
		this.codeMsg = codeMsg;
	}

	public BusinessException(String msg) {
		super(msg);
		this.msg = msg;
	}
	public BusinessException(String msg,int code) {
		super(msg);
		this.msg = msg;
		this.code= code;
	}

	public BusinessException(String msg,int code,String data) {
		super(msg);
		this.msg = msg;
		this.code= code;
		this.data = data;
	}

	public BusinessException(String msg,int code,String codeMsg,String data) {
		super(msg);
		this.msg = msg;
		this.code= code;
		this.data = data;
		this.codeMsg = codeMsg;
	}

	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}
}
